package com.leinao.core;


import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * description
 *
 * @author zhong.wang
 * @date 2025/1/13
 */
public class FailDeviceIdPool {

    private static final FailDeviceIdPool INSTANCE = new FailDeviceIdPool();
    private List<Long> idPool = new ArrayList<>();

    private FailDeviceIdPool() {
        idPool = new ArrayList<>(1 << 10);
    }

    public synchronized void addRelation(Long deviceId){
        idPool.add(deviceId);
    }

    public static FailDeviceIdPool getInstance() {
        return INSTANCE;
    }

    public void print(){
        for (Long aLong : idPool) {
            System.out.println(aLong);
        }
    }
}
